﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    [SugarTable("radar")]
    public class RadarModel
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        public int BindingAreaId { get; set; }
        [SugarColumn(Length = 100)]
        public string Ip { get; set; }
        public int Port { get; set; }
        public int Status { get; set; }
        public float Latitude { get; set; }
        public float Longitude { get; set; }
        public float NorthDeviationAngle { get; set; }
        public string create_user { get; set; }
        public DateTime create_time { get; set; }
        public int DefenceRadius { get; set; } = 300;
        public int DefenceAngle { get; set; } = 90;
        public int Direction { get; set; } = 0;
    }

    public class UpdateRadarArea
    {
        public int BindingAreaId { get; set; }
        public string Ip { get; set; }
    }
}
